import java.awt.Component;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JScrollPane;

public class TweetScrollPaneView extends JScrollPane{
	
	public TweetScrollPaneView(Component tweetPanel) {
		super(tweetPanel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		this.setPreferredSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize().width, (int) ((int)Toolkit.getDefaultToolkit().getScreenSize().height/1.15)));
		
		// Both the setOpaque() and getViewport.setOpaque must be false in order to see the background behind it.
		this.setOpaque(false);
		this.getViewport().setOpaque(false);
		this.setBorder(null);
	}
	
	
}
